﻿using System;
using System.Data;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace Condor.Data
{
    public class MedioTransporte
    {

        public virtual DataSet  Consultar(Int32 Tipo, Int32 Estado)
        {
            Database db = DatabaseFactory.CreateDatabase("BD_OPERACIONESConnectionString");
            DbCommand comando = db.GetStoredProcCommand("MedioTransporte_Consultar",Tipo,Estado);
            return db.ExecuteDataSet(comando);
        }

        public virtual DataSet ListarTipos()
        {
            Database db = DatabaseFactory.CreateDatabase("BD_OPERACIONESConnectionString");
            DbCommand comando = db.GetStoredProcCommand("MedioTransporteTipo_Listar");
            return db.ExecuteDataSet(comando);
        }

    }
}
